package com.mlk.engSystem.service;

import com.mlk.core.component.page.Pager;
import com.mlk.core.util.ServerResponse;
import com.mlk.engSystem.po.*;
import com.mlk.engSystem.vo.EngSysEmpVO;

import java.util.List;

public interface EngSysEmpService {

    EngSysEmp getEmpByOpenId(String openId);

    Pager listPage();

    ServerResponse add(EngSysEmp emp);

    ServerResponse modify(EngSysEmp emp);

    ServerResponse allocateArea(List<EngSysRefUserArea> lists, Integer id);

    ServerResponse allocateWasteType(List<EngUserWasteType> lists, Integer id);

    ServerResponse allocateDeposit(Integer depositId, Integer id);

    ServerResponse selectEmpAllCheckedWasteType(Integer id);

    ServerResponse selectEmpAllArea(Integer id);

    ServerResponse checkedIsRegistered(String openId);

    ServerResponse empVerify(EngSysEmp emp);

    ServerResponse applyRemain(EngSysEmpRemainApply apply);

    Pager applyRemainList(String openId);

    ServerResponse allocateRemain(EngSysEmpRemainLog log);

    ServerResponse queryMyRemain(String openId);

    Pager listReportPage(EngSysEmpVO engSysEmpVO);

    ServerResponse isAllocateCar(Integer id);

    Pager getAllCanUseCar(Integer id);

    /**
     * 分配车辆
     * @param emp
     * @return
     */
    ServerResponse allocateCar(EngSysEmp emp);

    /**
     * 获取用户的信息(在业务端启动的时候,让业务员知道自己现在的情况)
     * @param openId
     * @return
     */
    ServerResponse getEmpInfo(String openId);

    /**
     * 修改用户的信息
     * @param emp
     * @return
     */
    ServerResponse editEmp(EngSysEmp emp);
}
